package com.onesports.intelligent.k12.polarlight.mapper.course;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.onesports.intelligent.k12.polarlight.annotation.DataPermission;
import com.onesports.intelligent.k12.polarlight.domain.vo.course.CourseAdjustPriceRecordVO;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.onesports.intelligent.k12.polarlight.domain.entity.course.CourseAdjustPriceRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 校区课程调价记录表
 *
 * @author
 * @since 1.0.0 2022-07-08
 */
@Mapper
public interface CourseAdjustPriceRecordMapper extends BaseMapper<CourseAdjustPriceRecord> {


    /**
     * 调价记录
     *
     * @param page                分页参数
     * @param applyOrganizationId 申请机构id
     * @param campusId            校区id
     * @param courseId            课程id
     * @param auditStatus         审核状态
     * @param auditBy             审核人
     * @return IPage<CourseAdjustPriceRecordVO>
     */
    @DataPermission
    IPage<CourseAdjustPriceRecordVO> adjustRecord(@Param("page") Page<Object> page,
                                                  @Param("applyOrganizationId") String applyOrganizationId,
                                                  @Param("campusId") String campusId,
                                                  @Param("courseId") String courseId,
                                                  @Param("auditStatus") String auditStatus,
                                                  @Param("auditBy") String auditBy,
                                                  @Param("typeName")String typeName);
}
